<template>
  <view :style="themeColor">
    <view class="page">
      <view class="flex flex-wrap align-center justify-between benben-position-layout flex zulinzhifu_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center zulinzhifu_fd0_0' @tap.stop="handleJumpDiy" data-type="back"
          data-url="1">
          <image class='zulinzhifu_fd0_0_c0' mode="aspectFit" :src='STATIC_URL+"234.png"'></image>
        </view>
        <text class='zulinzhifu_fd0_1'>续费结果</text>
        <view class='flex flex-wrap align-center zulinzhifu_fd0_0'>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-center benben-flex-layout">
        <image class='zulinzhifu_fd1_0' mode="aspectFit" :src='STATIC_URL+"348.png"'></image>
        <text class='zulinzhifu_fd1_1'>{{$t('支付成功')}}</text>
        <view class='flex flex-wrap align-center'>
          <text class='zulinzhifu_fd1_2_c0'>{{$t('支付方式：')}}</text>
          <text class='zulinzhifu_fd1_2_c1'>{{paymentResults.pay_type}}</text>
        </view>
        <view class='flex flex-wrap align-center zulinzhifu_fd1_3'>
          <text class='zulinzhifu_fd1_2_c0'>{{$t('支付时间')}}</text>
          <text class='zulinzhifu_fd1_2_c1'>{{paymentResults.pay_time}}</text>
        </view>
        <button class='zulinzhifu_fd1_4' @tap.stop="handleJumpDiy" data-type="redirectTo"
          :data-url="`/pages/ddgl/woyaozulin/woyaozulin`">查看租赁</button>
        <button class='zulinzhifu_fd1_5' @tap.stop="toHomeDiy()">{{$t('返回首页')}}</button>
      </view>

      <!---flex布局flex布局结束-->


    </view>
  </view>
</template>
<script>
  import {
    validate
  } from '@/common/utils/validate.js'

  export default {
    components: {},


    data() {
      return {
        "order_sn": "GD20230625191945142064",
        "paymentResults": {
          "pay_type": "",
          "pay_time": "",
          "order_type": "",
          "payable_money": ""
        },
        "num": {
          "lottery_num": ""
        }
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {
      let {
        order_sn
      } = options
      if (order_sn !== undefined) this.order_sn = order_sn
      this.paymentResultsFunc()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {
      this.popupShow1709706165794 = false
    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      //支付结果
      async paymentResultsFunc() {
        //请求方法
        //数据验证

        let datapaymentResults = await this.$api.post(global.apiUrls.post64215178a23ec, {
          order_sn: this.order_sn
        });

        if (datapaymentResults.data.code != 1) {
          this.$message.info(datapaymentResults.data.msg);
          return
        }
        let infopaymentResults = datapaymentResults.data;
        this.paymentResults = infopaymentResults.data

      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: #fff;
    background-size: 100% auto;
  }

  .zulinzhifu_flex_0 {
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .zulinzhifu_fd0_1 {
    color: #333333;
    font-size: 36rpx;
    font-weight: 500;
    line-height: 50rpx;
  }

  .zulinzhifu_fd0_0_c0 {
    width: 20rpx;
    height: 36rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
    margin: 0rpx 0rpx 0rpx 32rpx;
  }

  .zulinzhifu_fd0_0 {
    width: 100rpx;
    height: 88rpx;
  }

  .zulinzhifu_fd1_5 {
    background: var(--benbenbgColor5);
    border-radius: 36rpx 36rpx 36rpx 36rpx;
    font-size: 28rpx;
    color: var(--benbenFontColor0);
    width: 280rpx;
    height: 72rpx;
    line-height: 72rpx;
    margin: 33rpx 0rpx 112rpx 0rpx;
  }

  .zulinzhifu_fd1_4 {
    background: var(--benbenbgColor7);
    border-radius: 44rpx 44rpx 44rpx 44rpx;
    font-size: 28rpx;
    color: #fff;
    width: 280rpx;
    height: 72rpx;
    line-height: 72rpx;
  }

  .zulinzhifu_fd1_3 {
    margin: 16rpx 0rpx 87rpx 0rpx;
  }

  .zulinzhifu_fd1_2_c1 {
    color: #666666;
    font-size: 28rpx;
    font-weight: 400;
    line-height: 40rpx;
  }

  .zulinzhifu_fd1_2_c0 {
    color: #666666;
    font-size: 28rpx;
    font-weight: 400;
    line-height: 40rpx;
    margin: 0rpx 10rpx 0rpx 0rpx;
  }

  .zulinzhifu_fd1_1 {
    color: #000000;
    font-size: 32rpx;
    font-weight: 500;
    line-height: 45rpx;
    margin: 40rpx 0rpx 30rpx 0rpx;
  }

  .zulinzhifu_fd1_0 {
    width: 250rpx;
    height: 180rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
    margin: 88rpx 0rpx 0rpx 0rpx;
  }
</style>
